(window.JSON||(JSON={}))&&(!JSON.stringify||JSON.org||JSON.copyright)&&(JSON.stringify=function(l,i){var g,k,j,h=""; switch(typeof l){case"object":if(l){if("______array"==l.______array){for(k=0;k0){b=g[c];if((e||!b.id)&&f.test(b.src)){return b}}return null};truste.util.initParameterMap=function(d,f,e){if(d==null){f._query=f._url="" }else{var c,a=f._url=d.src||f._url;a=(f._query=a.replace(/^[^;?#]*[;?#]/,"").replace(/&(amp|#38|#x00026);/ig,"&").replace(/&(equals|#61|#x0003d);/ig,"=").replace(/&(semi|#59|#x0003b);/ig,";")).replace(/[#;?]|&(num|#35|#x00023|quest|#63|#x0003f);/ig,"&"); if(a){for(a=a.split("&"),c=a.length;c-->0;){var g=a[c].split("=");var b=g.shift();if(g.length){f[b]=(b!==e)?decodeURIComponent(g.join("=")):g.join("=") }else{f[b]=""}}}d.id=f.sid=f.sid||truste.util.getUniqueID()}return f};truste.util.addScriptElement=function(f,g,c,b,a){if(!f){truste.util.trace("ERROR adding script element to page, src is null"); return null}var e=null;if("string"==typeof f){e=(c?c.ownerDocument:document).createElement("SCRIPT"); e.src=f}else{if((e.nodeName+"").toLowerCase()=="script"){e=f;if(!e.src){truste.util.trace("ERROR Object passed into addSCriptElement does not have required 'src' attribute"); return null}}else{truste.util.trace("ERROR Object passed into addSCriptElement is not a ScriptElement"); return null}}if(a){e.setAttribute("type",a)}if(b){e.setAttribute("async","async")}var d=function(i){var h; if(i&&i.type=="error"){truste.util.trace("ERROR Script was unable to load: "+f);h=2}else{if(i&&i.type=="load"||e.readyState=="loaded"){h=1 }}if(h){e.onload=e.onreadystatechange=e.onerror=null;e.parentNode.removeChild(e);g(e,h)}};e.onload=e.onreadystatechange=e.onerror=d; (c||document.getElementsByTagName("body")[0]||document.getElementsByTagName("head")[0]).appendChild(e); return e};truste.util.msglog=function(a,b){truste.eu&&truste.eu.msg&&truste.eu.msg.log(a,truste.eu.bindMap,b) };(function cmBannerScript(){cmBannerScript.cnt=cmBannerScript.cnt||0;var x=window.jQuery_TRUSTe||window.jQuery,A={},p="http"+(/s/.test(location.protocol)?"s:":":"); if(!x){truste.util.addScriptElement(p+"//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js",cmBannerScript); return}A.domain="dockers.com";A.baseURL="http://consent.truste.com/".replace(/^\w{3,5}:/,p);A.bannerMsgURL=A.baseURL+"bannermsg?"; A.country="us";A.iconws=p+"//preferences.truste.com/webservices/js";if(cmBannerScript.cnt<1){cmBannerScript.script=truste.util.getScriptElement(/\/\/[^\.]+\.(intranet\.)?truste(-labs|-svc)?\.(com|net)(:\n+)?\/[^\?#;]*(notice|banner)(\?|\.js)/,true) }truste.util.initParameterMap(cmBannerScript.script,A,"privacypolicylink");var b=A.c||"teconsent";var s=A.bb||"consent_blackbar"; var i=A.fc?isNaN(parseInt(A.fc))?A.fc:"footerCookie":null;var o=(A.cdn==2)?A.baseURL:p+"//consent-st.truste.com/"; var q=(A.cm||(A.cdn&&o+"get?name=notice.js&")||(A.baseURL+"notice?"))+"domain="+A.domain+"&country="+A.country+"&"+A._query.replace(/\b(js|domain|country|name)=[^&#]*&?/g,""),a='',w=''+a+"",u='AdChoices'; if(!i&&A.js=="bb_v2"){i="footerCookie"}var f=x("#"+s);var r=x("#"+i);var j=x("#"+b);if(cmBannerScript.cnt<=10&&(!f.length||!j.length||(i&&!r.length))){setTimeout(cmBannerScript,50); cmBannerScript.cnt++;return}var h=''; h=h.replace("<i>","").replace("</i>","").replace("<b>","").replace("</b>",""); if(!h||h.length<15){h='" }if(A.responsive&&A.responsive=="false"){h=h.replace(/(class=["'].*?)[\s]?truste-responsive(.*?["'])/g,"$1$2") }if(A.iframe==1){var k=document.createElement("iframe");k.id="truste-banner-iframe";k.setAttribute("frameborder","0"); k.setAttribute("scrolling","no");k.style.cssText="width: 100%;";f.append(k);var m;setTimeout(function(){try{m=k.contentDocument||k.contentWindow.document }catch(e){try{k.src='javascript:void((function(){document.open();document.domain="'+document.domain+'";document.close();})())'; m=k.contentDocument||k.contentWindow.document}catch(e){}}if(m){m.body.style.cssText="margin: 0; padding: 0;"; m.body.innerHTML=h;x("img",m).load(function(){x(window).trigger("resize")})}else{f.remove(k);k=null}},100) }else{f.append(h)}i&&r.append(u);var t=function(e){if(t[e]){return}t[e]=1;switch(e){case"loaded":if(v()){l(f[0]); d(f.children().not("style"));truste.util.msglog("views",A.bannerMsgURL)}else{i&&z("#"+i);t("done");truste.util.msglog("returns",A.bannerMsgURL) }break;case"ready":if(t.notice1){t("loaded")}break;case"notice1":if(t.ready){t("loaded")}break;case"done":j.show(); f.children().not("style").fadeOut();i&&r.show();break;case"open":x(window).trigger("resize")}},c=function(E){if(!isNaN(E=parseInt(E))&&truste.eu&&truste.eu.actmessage){var D=(truste.util&&truste.util.getJSON)||(truste.cma&&truste.cma.cheapJSON)||window.JSON.stringify,e={source:"preference_manager",message:"submit_preferences",data:{value:E}}; truste.eu.actmessage(e);if(window.PREF_MGR_API_DEBUG){PREF_MGR_API_DEBUG.authorities.push(window.location.hostname) }window.postMessage&&window.postMessage(D(e),"*");t("selection")}else{t("done")}},z=function C(D){if(C.once){return }var E,e=function(){if(truste.pm){view(trusteId)}else{if(!C.didAddScript){truste.util.addScriptElement(A.iconws+"?domain="+A.domain+"&js=responsive",function(){view(trusteId) });C.didAddScript=true}}};(E=i&&x(document).find(D))&&E.click(e);(E=i&&x(document).find(D+"-text"))&&E.click(e); C.once=true},d=function(F){var D={consentButton:"#truste-consent-button",footerCallback:"#truste-show-consent",cookieButton:"#truste-cookie-button",adChoice:"#truste-ad-choices",bannerHolder:"#truste-consent-track",closeBanner:"#truste-consent-close"}; F.fadeIn();var e=(A.iframe==1)?F.contents():F;e.find(D.bannerHolder).fadeIn();var E=e.find(D.consentButton); if(E){E.click(function(){truste.util.msglog("accepts",A.bannerMsgURL);c(2)})}(E=e.find(D.footerCallback))&&E.click(function(){truste.util.msglog("moreinfo",A.bannerMsgURL); if(truste.eu&&truste.eu.clickListener){truste.eu.clickListener(parseInt(A.pn)||0)}});(E=e.find(D.cookieButton))&&E.click(function(){truste.util.msglog("cookiepolicy",A.bannerMsgURL); if(A.cookieLink){window.open(A.cookieLink)}});(E=e.find(D.closeBanner))&&E.click(function(){t("done") });z(D.adChoice);parseInt(A.fade)&&setTimeout(function(){c(A.sl)},parseInt(A.fade));t("open")},B=function(){if(truste.eu.bindMap){var e=truste.eu.bindMap; return !e.prefCookie}else{return false}},v=function(){return !!truste.eu&&(A.ios!=1||!n)&&truste.eu.bindMap.behaviorManager=="eu"&&truste.eu.bindMap.behavior!="expressed"&&B() },n=/ip(hone|od|ad)|iOS/i.test(navigator.userAgent||navigator.vendor||window.opera),g=function(e){try{var D=e&&e.data&&x.parseJSON(e.data) }catch(E){return null}if(D&&D.source=="preference_manager"&&D.message=="submit_preferences"){t("done") }},y=function(){var e=[{id:"truste-consent-button",desc:"consents to cookies"},{id:"truste-show-consent",desc:"opens CM"},{id:"truste-cookie-button",desc:"opens link passed via cookieLink"},{id:"truste-ad-choices",desc:"opens PM (similar to: truste-ad-choices-text)"},{id:"truste-ad-choices-text",desc:"opens PM (similar to: truste-ad-choices)"},{id:"truste-consent-track",desc:"holds banner (this is the outermost div/element)"},{id:"truste-consent-close",desc:"closes/fades out banner"}]; x.each(e,function(E,D){if(x("#"+D.id).length<1){window.console&&console.log('[CM Banner] Missing "'+D.id+'": '+D.desc) }})},l=function(e){if(truste.util.addListener){if(A.oc){truste.util.addListener(document,"click",function(D){var E=function(){var F=self.document.getElementById(truste.eu.popdiv2); return(F)?false:true};if(e&&x(e).is(":visible")&&!e.contains(D.target)&&E()){c(2)}})}if(A.px){truste.util.addListener(document,"scroll",function(D){if(document.body.scrollTop>=A.px){c(2) }})}}};if(window.addEventListener){window.addEventListener("message",g,false)}else{if(window.attachEvent){window.attachEvent("onmessage",g) }}x(document).ready(function(){t("ready")});x.getScript(q,function(D,G,F){t("notice0");var E,e=function(){if(E&&truste.eu&&truste.eu.bindMap&&truste.cma){E=clearInterval(E); t("notice1")}};E=setInterval(e,7);e();setTimeout(function(){clearInterval(E)},10000)});if(A.iframe==1){x(window).resize(function(){if(k&&m){var e=m.getElementById("truste-consent-track"); if(e){k.height=e.offsetHeight}}})}})();